<form name="form" action="{$modal.href}" method="post" class="nyroModal">
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$blockParams.blockLabel}
<div id="modalContent">
{if count($forms) > 0}
    <table class="listTable">
		<tr>
			<td>{t}Form{/t}</td><td>:
                <select name="form[formId]">
                    {foreach from=$forms item=form}
                    <option value="{$form->getUniqueId()}"{if isset($blockParams.formId) && $blockParams.formId==$form->getUniqueId()} selected="selected"{/if}>{$form->getLabel()}</option>
                    {/foreach}
                </select>
			</td>
		</tr>
	</table>
</div>
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html"}
{else}
<table class="listTable"><tr><td>{icon name="warning.png} {t}You must firstly create a form in the components{/t}</td></tr></table>
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" noButton='true'}
{/if}
</form>
